package com.srx.openfeign.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

/**
 * 通知数据传输对象
 *
 * @author srx
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NoticeDTO 
{

    /**
     * 通知ID
     */
    private Integer id;
    /**
     * 通知标题
     */
    private String title;
    /**
     * 发布时间
     */
    @JsonProperty("publish_date")
    private Date publishDate;



    public NoticeDTO(int id, String title)
    {
        this.id = id;
        this.title = title;
    }

}
